<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core">

    <ui:composition template="/template.xhtml">
        <ui:define name="title">
            <h:outputText value="#{bundle.CreatePermissaoTitle}"></h:outputText>
        </ui:define>
        <ui:define name="body">
            <h:panelGroup id="messagePanel" layout="block">
                <h:messages errorStyle="color: red" infoStyle="color: green" layout="table"/>
            </h:panelGroup>
            <h:form>
                <h:panelGrid columns="2">
                    <h:outputLabel value="#{bundle.CreatePermissaoLabel_idPermissao}" for="idPermissao" />
                    <h:inputText id="idPermissao" value="#{permissaoController.selected.idPermissao}" title="#{bundle.CreatePermissaoTitle_idPermissao}" required="true" requiredMessage="#{bundle.CreatePermissaoRequiredMessage_idPermissao}"/>
                    <h:outputLabel value="#{bundle.CreatePermissaoLabel_moduloUsuarios}" for="moduloUsuarios" />
                    <h:inputText id="moduloUsuarios" value="#{permissaoController.selected.moduloUsuarios}" title="#{bundle.CreatePermissaoTitle_moduloUsuarios}" required="true" requiredMessage="#{bundle.CreatePermissaoRequiredMessage_moduloUsuarios}"/>
                    <h:outputLabel value="#{bundle.CreatePermissaoLabel_moduloProducao}" for="moduloProducao" />
                    <h:inputText id="moduloProducao" value="#{permissaoController.selected.moduloProducao}" title="#{bundle.CreatePermissaoTitle_moduloProducao}" required="true" requiredMessage="#{bundle.CreatePermissaoRequiredMessage_moduloProducao}"/>
                    <h:outputLabel value="#{bundle.CreatePermissaoLabel_moduloFinancas}" for="moduloFinancas" />
                    <h:inputText id="moduloFinancas" value="#{permissaoController.selected.moduloFinancas}" title="#{bundle.CreatePermissaoTitle_moduloFinancas}" required="true" requiredMessage="#{bundle.CreatePermissaoRequiredMessage_moduloFinancas}"/>
                    <h:outputLabel value="#{bundle.CreatePermissaoLabel_moduloRh}" for="moduloRh" />
                    <h:inputText id="moduloRh" value="#{permissaoController.selected.moduloRh}" title="#{bundle.CreatePermissaoTitle_moduloRh}" required="true" requiredMessage="#{bundle.CreatePermissaoRequiredMessage_moduloRh}"/>
                    <h:outputLabel value="#{bundle.CreatePermissaoLabel_moduloSeguranca}" for="moduloSeguranca" />
                    <h:inputText id="moduloSeguranca" value="#{permissaoController.selected.moduloSeguranca}" title="#{bundle.CreatePermissaoTitle_moduloSeguranca}" required="true" requiredMessage="#{bundle.CreatePermissaoRequiredMessage_moduloSeguranca}"/>
                    <h:outputLabel value="#{bundle.CreatePermissaoLabel_moduloAdministrativo}" for="moduloAdministrativo" />
                    <h:inputText id="moduloAdministrativo" value="#{permissaoController.selected.moduloAdministrativo}" title="#{bundle.CreatePermissaoTitle_moduloAdministrativo}" required="true" requiredMessage="#{bundle.CreatePermissaoRequiredMessage_moduloAdministrativo}"/>
                    <h:outputLabel value="#{bundle.CreatePermissaoLabel_moduloStock}" for="moduloStock" />
                    <h:inputText id="moduloStock" value="#{permissaoController.selected.moduloStock}" title="#{bundle.CreatePermissaoTitle_moduloStock}" required="true" requiredMessage="#{bundle.CreatePermissaoRequiredMessage_moduloStock}"/>
                    <h:outputLabel value="#{bundle.CreatePermissaoLabel_moduloAluguer}" for="moduloAluguer" />
                    <h:inputText id="moduloAluguer" value="#{permissaoController.selected.moduloAluguer}" title="#{bundle.CreatePermissaoTitle_moduloAluguer}" required="true" requiredMessage="#{bundle.CreatePermissaoRequiredMessage_moduloAluguer}"/>
                    <h:outputLabel value="#{bundle.CreatePermissaoLabel_moduloPatrimonio}" for="moduloPatrimonio" />
                    <h:inputText id="moduloPatrimonio" value="#{permissaoController.selected.moduloPatrimonio}" title="#{bundle.CreatePermissaoTitle_moduloPatrimonio}" required="true" requiredMessage="#{bundle.CreatePermissaoRequiredMessage_moduloPatrimonio}"/>
                    <h:outputLabel value="#{bundle.CreatePermissaoLabel_moduloCompra}" for="moduloCompra" />
                    <h:inputText id="moduloCompra" value="#{permissaoController.selected.moduloCompra}" title="#{bundle.CreatePermissaoTitle_moduloCompra}" required="true" requiredMessage="#{bundle.CreatePermissaoRequiredMessage_moduloCompra}"/>
                </h:panelGrid>
                <br />
                <h:commandLink action="#{permissaoController.create}" value="#{bundle.CreatePermissaoSaveLink}" />
                <br />
                <br />
                <h:commandLink action="#{permissaoController.prepareList}" value="#{bundle.CreatePermissaoShowAllLink}" immediate="true"/>
                <br />
                <br />
                <h:commandLink value="#{bundle.CreatePermissaoIndexLink}" action="/index" immediate="true" />
            </h:form>
        </ui:define>
    </ui:composition>

</html>
